package com.zr.eim.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 居民基本信息对象 eim_data_person
 * 
 * @author peihang
 * @date 2022-10-24
 */
public class EimDataPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据编号 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String personId;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 身高 */
    @Excel(name = "身高")
    private Long heigh;

    /** 体重 */
    @Excel(name = "体重")
    private Long weight;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 现住址编码 */
    @Excel(name = "现住址编码")
    private Long addressCode;

    /** 现住址 */
    @Excel(name = "现住址")
    private String address;

    /** 是否在本市：1在/0不在 */
    @Excel(name = "是否在本市：1在/0不在")
    private Long ifIn;

    /** 最后进入本市时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后进入本市时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastGetInTime;

    /** 最后离开本市时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后离开本市时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastGetOutTime;

    /** 最后进入本市来源 */
    @Excel(name = "最后进入本市来源")
    private Long getInFrom;

    /** 最后离开本市去向 */
    @Excel(name = "最后离开本市去向")
    private Long getOutTo;

    /** 是否存活：1存活/0死亡 */
    @Excel(name = "是否存活：1存活/0死亡")
    private Long alive;

    /** 是否确诊：1确诊/0未确诊 */
    @Excel(name = "是否确诊：1确诊/0未确诊")
    private Long ifDiagnosis;

    /** 确诊信息id */
    @Excel(name = "确诊信息id")
    private Long diagnosisId;

    /** 是否密接：1密接/0非密接 */
    @Excel(name = "是否密接：1密接/0非密接")
    private Long ifCloseContact;

    /** 密接信息id */
    @Excel(name = "密接信息id")
    private Long closeContactId;

    /** 管控状态：0未管控/1居家检测/2待转运/3转运中/4待接收/5隔离中 */
    @Excel(name = "管控状态：0未管控/1居家检测/2待转运/3转运中/4待接收/5隔离中")
    private Long controlStatus;

    /** 最后核酸检测单id */
    @Excel(name = "最后核酸检测单id")
    private Long lastCheckId;

    /** 是否接种疫苗 */
    @Excel(name = "是否接种疫苗")
    private Long ifVaccines;

    /** 职业 */
    @Excel(name = "职业")
    private String work;

    /** 公司 */
    @Excel(name = "公司")
    private String company;

    /** 公司地址 */
    @Excel(name = "公司地址")
    private String workAddr;

    /** 籍贯省份 */
    @Excel(name = "籍贯省份")
    private Long originProvince;

    /** 籍贯城市 */
    @Excel(name = "籍贯城市")
    private Long originCity;

    /** 籍贯区域 */
    @Excel(name = "籍贯区域")
    private Long originArea;

    /** 户籍所在地址 */
    @Excel(name = "户籍所在地址")
    private String originAddress;

/** 对确诊病例所在区域是否进行采样消杀 */
    @Excel(name = "是否进行采样消杀")
    private  Long ifSampleSanitize;

    @Excel(name = "核酸")
    private EimDataNucleicAcidCheck eimDataNucleicAcidCheck;


/** 确诊病例的传播链列表*/
    private List<EimDataPerson> children;

    public List<EimDataPerson> getChildren() {
        return children;
    }

    public void setChildren(List<EimDataPerson> children) {
        this.children = children;
    }

    public EimDataNucleicAcidCheck getEimDataNucleicAcidCheck() {
        return eimDataNucleicAcidCheck;
    }

    public void setEimDataNucleicAcidCheck(EimDataNucleicAcidCheck eimDataNucleicAcidCheck) {
        this.eimDataNucleicAcidCheck = eimDataNucleicAcidCheck;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setHeigh(Long heigh) 
    {
        this.heigh = heigh;
    }

    public Long getHeigh() 
    {
        return heigh;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setAddressCode(Long addressCode) 
    {
        this.addressCode = addressCode;
    }

    public Long getAddressCode() 
    {
        return addressCode;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setIfIn(Long ifIn) 
    {
        this.ifIn = ifIn;
    }

    public Long getIfIn() 
    {
        return ifIn;
    }
    public void setLastGetInTime(Date lastGetInTime) 
    {
        this.lastGetInTime = lastGetInTime;
    }

    public Date getLastGetInTime() 
    {
        return lastGetInTime;
    }
    public void setLastGetOutTime(Date lastGetOutTime) 
    {
        this.lastGetOutTime = lastGetOutTime;
    }

    public Date getLastGetOutTime() 
    {
        return lastGetOutTime;
    }
    public void setGetInFrom(Long getInFrom) 
    {
        this.getInFrom = getInFrom;
    }

    public Long getGetInFrom() 
    {
        return getInFrom;
    }
    public void setGetOutTo(Long getOutTo) 
    {
        this.getOutTo = getOutTo;
    }

    public Long getGetOutTo() 
    {
        return getOutTo;
    }
    public void setAlive(Long alive) 
    {
        this.alive = alive;
    }

    public Long getAlive() 
    {
        return alive;
    }
    public void setIfDiagnosis(Long ifDiagnosis) 
    {
        this.ifDiagnosis = ifDiagnosis;
    }

    public Long getIfDiagnosis() 
    {
        return ifDiagnosis;
    }
    public void setDiagnosisId(Long diagnosisId) 
    {
        this.diagnosisId = diagnosisId;
    }

    public Long getDiagnosisId() 
    {
        return diagnosisId;
    }
    public void setIfCloseContact(Long ifCloseContact) 
    {
        this.ifCloseContact = ifCloseContact;
    }

    public Long getIfCloseContact() 
    {
        return ifCloseContact;
    }
    public void setCloseContactId(Long closeContactId)
    {
        this.closeContactId = closeContactId;
    }

    public Long getCloseContactId()
    {
        return closeContactId;
    }
    public void setControlStatus(Long controlStatus) 
    {
        this.controlStatus = controlStatus;
    }

    public Long getControlStatus() 
    {
        return controlStatus;
    }
    public void setLastCheckId(Long lastCheckId) 
    {
        this.lastCheckId = lastCheckId;
    }

    public Long getLastCheckId() 
    {
        return lastCheckId;
    }
    public void setIfVaccines(Long ifVaccines) 
    {
        this.ifVaccines = ifVaccines;
    }

    public Long getIfVaccines() 
    {
        return ifVaccines;
    }
    public void setWork(String work) 
    {
        this.work = work;
    }

    public String getWork() 
    {
        return work;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setWorkAddr(String workAddr) 
    {
        this.workAddr = workAddr;
    }

    public String getWorkAddr() 
    {
        return workAddr;
    }
    public void setOriginProvince(Long originProvince) 
    {
        this.originProvince = originProvince;
    }

    public Long getOriginProvince() 
    {
        return originProvince;
    }
    public void setOriginCity(Long originCity) 
    {
        this.originCity = originCity;
    }

    public Long getOriginCity() 
    {
        return originCity;
    }
    public void setOriginArea(Long originArea) 
    {
        this.originArea = originArea;
    }

    public Long getOriginArea() 
    {
        return originArea;
    }
    public void setOriginAddress(String originAddress) 
    {
        this.originAddress = originAddress;
    }

    public String getOriginAddress() 
    {
        return originAddress;
    }

public Long getIfSampleSanitize() {
        return ifSampleSanitize;
    }

    public void setIfSampleSanitize(Long ifSampleSanitize) {
        this.ifSampleSanitize = ifSampleSanitize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("personId", getPersonId())
            .append("phone", getPhone())
            .append("age", getAge())
            .append("heigh", getHeigh())
            .append("weight", getWeight())
            .append("sex", getSex())
            .append("addressCode", getAddressCode())
            .append("address", getAddress())
            .append("ifIn", getIfIn())
            .append("lastGetInTime", getLastGetInTime())
            .append("lastGetOutTime", getLastGetOutTime())
            .append("getInFrom", getGetInFrom())
            .append("getOutTo", getGetOutTo())
            .append("alive", getAlive())
            .append("ifDiagnosis", getIfDiagnosis())
            .append("diagnosisId", getDiagnosisId())
            .append("ifCloseContact", getIfCloseContact())
            .append("closeContactId", getCloseContactId())
            .append("controlStatus", getControlStatus())
            .append("lastCheckId", getLastCheckId())
            .append("ifVaccines", getIfVaccines())
            .append("work", getWork())
            .append("company", getCompany())
            .append("workAddr", getWorkAddr())
            .append("originProvince", getOriginProvince())
            .append("originCity", getOriginCity())
            .append("originArea", getOriginArea())
            .append("originAddress", getOriginAddress())
            .append("eimDataNucleicAcidCheck", getEimDataNucleicAcidCheck())
            .toString();
    }

}
